package com.pipi.biyesheji.dao.manager;

import com.pipi.biyesheji.dao.support.PageResult;
import com.pipi.biyesheji.dao.model.RolePermissionDO;
import com.pipi.biyesheji.dao.query.RolePermissionQuery;

import java.util.List;


/**
 * Manager for RolePermission.
 */
public interface RolePermissionManager {
    /**
     * query count by query condition.
     */
    int countByQuery(RolePermissionQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(RolePermissionQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(RolePermissionDO record);

    /**
     * select by query condition.
     */
    List<RolePermissionDO> selectByQuery(RolePermissionQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<RolePermissionDO> selectByQueryWithPage(RolePermissionQuery query);

    /**
     * select by primary key.
     */
    RolePermissionDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( RolePermissionDO record,  RolePermissionQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(RolePermissionDO record, RolePermissionQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(RolePermissionDO record);
}